﻿<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="format-detection" content="telephone=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <title>邀请详情</title>
    <link rel="stylesheet" href="css/style.css?v=1.11">
    <link rel="stylesheet" href="css/index.css?v=1.11">
    <script src="js/jquery-1.8.3.min.js?v=1.11"></script>
    <script src="js/flexible.js?v=1.11"></script>
    <script src="layer-mobile/layer.js?v=1.11"></script>
</head>

<body>
	<header id="header">
		<div class="back" onclick="closeWin();">
			<img src="image/back.png">
		</div>
		<div class="title">邀请好友</div>
	</header>
    <div class="intive">
        <div class="content">
            <div class="item clearfix">
                
			</div>
            <div class="rule">
                <h3>奖励规则:</h3>
                <p>
                    1.每邀请一个好友完成注册，且该好友成功收取1次云钻，即成功邀请一名一级好友，你就可以获得算力+10的奖励；
                </p>
                <p>2.你邀请的好友，其邀请一个好友完成注册并成功收取1次云钻，即成功邀请一名二级好友，你就可以获得算力+5的奖励；</p>
                <p>3.你邀请的好友的好友，其邀请一个好友完成注册并成功收取1次云钻，即成功邀请一名三级好友，你就可以获得算力+4的奖励；</p>
                <p>4.以此类推，邀请四级好友算力+3；邀请五级好友算力+2；邀请六级好友算力+1.</p>

            </div>
        </div>
    </div>
</body>

</html>
<script type="text/javascript">
    $(function () {

    var userid = getUserId();//获取userid
		
	$ajax(
		url+'getInviteFriendsInfo.ashx',
		'get',
		{userid:userid},
		function(data){
			data =data.data;
			var invitelist = data.inviteList,
				res = '';

			if(invitelist.length > 0){
				
				for(var i = 0,iL=invitelist.length;i<iL;i++){
					res+='<div class="item-list">'+
							'<p class="item-top"><img src = "image/friends.png" class="friend" /><span>'+translation(invitelist[i].levelNumber)+'级好友数'+'</span>'+
								'<span class="item-total">'+invitelist[i].referralCount+'</span>'+
							'</p>'+
						'</div>';
				}
				$('.item').append(res);
				
			}
			
			$('#first').html(data.primaryCount);
			$('#second').html(data.secondaryCount);
			$('#first-hash').html(data.totalKnowledge);
			$('#second-hash').html(data.totalCredits);
		},
		function(data){
            loginRes();
		}
    )
    })
</script>
